import type { AppRouteModule } from '/@/router/types';

import { BACKEND_LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const route: AppRouteModule = {
  path: '/backend-task',
  name: 'BackendTask',
  component: BACKEND_LAYOUT,
  redirect: '/backend-task/add-task',
  meta: {
    orderNo: 5000,
    icon: 'tabler:chart-dots',
    title: t('routes.backend.task.timingTask'),
  },
  children: [
    {
      path: 'add-task',
      name: 'BackendAddTask',
      component: () => import('/A/backend/views/task/add-task.vue'),
      meta: {
        title: t('routes.backend.task.addTask'),
      },
    },
    {
      path: 'task-list',
      name: 'BackendSourceTypeManage',
      component: () => import('/A/backend/views/task/task-list.vue'),
      meta: {
        title: t('routes.backend.task.taskList'),
      },
    },
  ],
};

export default route;
